////ThreadManager.cpp
//#include "ThreadManager.h"
//
//ThreadManager::ThreadManager()
//{
//	m_nThreadNum = THREAD_INITIAL_NUM;
//	m_Pool = new ThreadPool(m_nThreadNum);
//}
//
//ThreadManager::ThreadManager(int nNum)
//{
//	m_nThreadNum = nNum;
//	m_Pool = new ThreadPool(m_nThreadNum);
//}
//
//ThreadManager::~ThreadManager()
//{
//	m_nThreadNum = 0;
//	if (NULL != m_Pool)
//	{
//		delete m_Pool;
//	}
//}
//
//void ThreadManager::SetParallelNum(int nNum)
//{
//	m_nThreadNum = nNum;
//}
//
//void ThreadManager::Run(Thread* t, void* data)
//{
//	m_Pool->Run(t, data);
//}
//
//void ThreadManager::TerminateAll()
//{
//	m_Pool->TerminateAll();
//}